From 24047d7f61bf7ae10f689172c10e233cab3f51ef Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 4 Nov 2022 15:56:20 +0100 Subject: [PATCH] GdkWin32: Set the "gtk-cursor-theme-size" setting Note that we have to set the logical value, that's why we use GetSystemMetrics and not GetSystemMetricsForDpi. --- gdk/win32/gdkproperty-win32.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdk/win32/gdkproperty-win32.c b/gdk/win32/gdkproperty-win32.c index 5a5b12253a..f77288c4c5 100644 --- a/gdk/win32/gdkproperty-win32.c +++ b/gdk/win32/gdkproperty-win32.c @@ -76,6 +76,13 @@ _gdk_win32_get_setting (const char *name, g_value_set_boolean (value, TRUE); return TRUE; } + else if (strcmp ("gtk-cursor-theme-size", name) == 0) + { + int cursor_size = GetSystemMetrics (SM_CXCURSOR); + GDK_NOTE(MISC, g_print("gdk_display_get_setting(\"%s\") : %d\n", name, cursor_size)); + g_value_set_int (value, cursor_size); + return TRUE; + } else if (strcmp ("gtk-dnd-drag-threshold", name) == 0) { int i = MAX(GetSystemMetrics (SM_CXDRAG), GetSystemMetrics (SM_CYDRAG)); -- 2.30.2